package com.quanquan.user.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 功能描述:消费满额营销规则
 *
 * @ClassName: ConsumptionQuota
 * @Author: xiaoqianh丶
 * @Date: 2019-06-03 09:41
 * @Version: V1.0
 */
@Data
@Entity
@Table(name = "oo_consumption_quota")
public class ConsumptionQuota {

    /**
     * 主键
     */
    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;

    /**
     * 阀值名称
     **/
    @Column(name = "threshoid_name",  length = 32)
    private String threshoidName;

    /**
     * 消费阀值
     **/
    @Column(name = "threshoid",  length = 32)
    private String threshoid;

    /**
     * 营销类型 (积分 integral 优惠券 coupon 停车券 parking)
     */
    @Column(name = "marketing_type",  length = 32)
    private String marketingType;

    /**
     * 营销规则 (integral 填写数值 coupon 填写优惠券的id parking 填写停车场的id)
     */
    @Column(name = "marketing_rule",  length = 256)
    private String marketingRule;

    /**
     * 数据是否移除
     */
    @Column(name = "status_remove", columnDefinition = "TINYINT default 0",nullable = false)
    private Integer remove;

    /**
     * 创建时间
     */
    @Column(name = "create_time", nullable = false, length = 32)
    private String createTime;



}
